scoreboard objectives remove rmr.local.cd
scoreboard objectives add rmr.local.cd dummy
scoreboard objectives add rmr.local.attack_speed dummy

execute store result score @s rmr.local.attack_speed run attribute @s generic.attack_speed get 100
scoreboard players set @s rmr.local.cd 2000
scoreboard players operation @s rmr.local.cd /= @s rmr.local.attack_speed

scoreboard objectives remove rmr.local.attack_speed
return run scoreboard players get @s rmr.local.cd